

 #include "bxd_iic.h"

uint8_t dev_addr=0x40;//config A2A1A0:000


void iic_read_pcf8574(uint8_t *data_buf)
{
    i2c_read_single_byte(BX_IIC0,dev_addr,data_buf);
}

void iic_write_pcf8574(uint8_t *data_buf)
{
    i2c_write_single_byte(BX_IIC0, dev_addr, *data_buf);
}
